made ciphertext serializable