If you write something down and put it in a safe place, to be retrieved at your death, it would remain a secret for while, anyway. Right?
Not if nobody finds it.