Slight optimizations

using lower level memory functions