Ultraprecise simulation of a computer storage technology known as CBRAM reveals its optimal geometry: an insulator roughly ten atoms thick sandwiched between two electrodes.