Using window.localStorage for caching.