Revert "Imporve performance of memcpy and memmove"

This reverts commit 10573bff73d7a0f3b09dd897f95b7813a4891802.