Update CacheManager to return correct number of results and use configured threshold value