Add support for encrypted files