Precompute schedules.