Create persistentcache.js

Adding persistent cache