added caches for some perf boosts