Best friends build shared memory networks