Basic caching to improve pagination performance