Remove constness from elements in cache