Use localstorage instead of memory cache