Optimize bone length computations.