Optimize ajax-search-res calls by caching results