Added the ability to the EC to decide if a file needs to be encrypted or
decrypted.