Add a cache for faster recommendations.