Refactored Object to EncryptedObject.