Storage and locality

Faster storage is smaller and dearer, so memory is a hierarchy of caches, and it works because programs reuse recent data and touch nearby data, temporal and spatial locality.

From Computer systems, a programmer's view.