Minor optimizations for timer management.