As of version 1.5 a new global caching function exists and the API own functionality will be removed in coming version.
The SetaPDF-Encryptor API provides a special caching function that saves a serialized version of the parser object in your file system. Depending on the size of the document, this can save considerable processing time.
Unfortunately it is not possible to predefine the cached data of a PDF document in its relation to its document size. The cache function only provides an intermediate storage for information, but not for embedded images or fonts.
Because of this, it is possible that the cache function will not be able to speed the processing of a 3 MB PDF document which includes some very large images. If the 3 MB document contains many pages, but only of text, the caching function will definitely reduce the processing time.
You can use the caching function simply by defining a writeable path in the constant SetaPDF_ENCRYPTOR_CACHEPATH and activating setUseCache() afterwards. If such as path has not been defined, the caching function is ignored.