Add optimization to countdown timer