Implement caching of select() and find() results