Might be worth looking into moving stdlib memory calls over to something like cymem in the future.
https://github.com/explosion/cymem