We can get away with passing memory_view on the stack here...