Simplify calling memcpy/memset