You can move this computation to outside the big vertex loop. Also you could compute the inverse instead and multiply (divides are more expensive than multiplies), but I can fix that later too.