Added mongo caching, working it in to the search pipeline