implement lock in redis so that occupancy, cmos rates, and base currents are only computed or averaged once per time interval (5 seconds and 24 hours). Cache the average/max crate/card values in their own redis keys.