Memoize data fetches.
Add indexes for queries on _time.