Implementing local storage caching