change all cache entry to cpair