Small memcpy optimizations