Add optimization of sin usage