Optimize data retrieval from cache
This is a follow-up to #548 (closed). We optimised access to the cache there, but for some views (e.g. the global schedule view) queries still take quite a bit to complete. This gets worse with the I/O performance of the device the app runs on.
We should further look into how to improve access to the cache to speed up things.