Add simple caching to localstorage and a object.