Attempts at moving the memcpy() loop to runtime