In some cases memory copies performed from a callback like this are either very slow or hang indefinitely.