various caching and disk use performance improvements