optimize small constant memcpy