ArrayUtils performance tweak