Made mostSimilarCache aware of numResults and validIds.