Reduce memory reallocation when initializing.