little optimization of IrregularClock

… to avoid sql slow-down due to repeated queries