Improve timer performance