Various cache/TLB/locality-of-reference performance optimizations