Avoid extra work when setting durations.