Optimize `DayOffRepository` queries