There is coming several helper functions in 0.8 which makes this kind of math like 10 to 20 times faster.