Moving cache to memory