Add support for encrypted documents