bug fix: Use cachePool.IsClosed to check if rowcache is enabled