Add caching in front of SELECT