Use cache in localstorage to store search index