QuietHours: small optimization