Optimize the cube physics stuff.