Faster editor/viewer switching by reusing decrypted content
Instead of decrypting the content each time which takes ~200ms, reuse
the decrypted content from the viewer when opening the editor and use
the new content when saving directly in the viewer.