optimized search cache method