Reduce the number of operations performed in lerp