Db Connection & Cache

When using cache with AR, Yii always opens a connection because it prepares the query statements. It should not always open the connection when the data set exist in the cache.