Improve performance of animations