Added heap_cache copy and move.