Php function to encrypt and decrypt large files using openssl