Connection pool and caching