Transparent encryption and decryption