* Propagate to_cpu flag down the recursion chain * Refactor * Add test * Update CHANGELOG * Update tests/utilities/test_memory.py Co-authored-by: Carlos Mocholi <carlossmocholi@gmail.com>