Memory, or the ability to store information in a readily accessible way, is an essential operation in computers and human brains. A key difference is that while brain information processing involves performing computations directly on stored data, computers shuttle data back and forth between a memory unit and a central processing unit (CPU). This inefficient separation (the von Neumann bottleneck) contributes to the rising energy cost of computers.