implemented encryption of cache file