set key expiry properly for scheduled maintenance spanning current time