Moved initialisation of cipher with key forward.
Added plaintext keyring functionality