added file loading support to pem plugin, using mmap()