switch to cache structure for last_interval_table