Updated to support partial decryption of data