Optimize Matrix4.equals