Toward single-atom memory