The production of decrypted plaintext by means of an encryption key stored in your mind falls squarely within the rule on production of documents from U.S. v. Hubbell, discussed in jpol's comment above. It therefore seems quite likely the state will lose on appeal.