Adding ability to put/get objects using EncryptionMaterials for that call
Changed version for internal use