Reducing information stored in magnetic thin films to the size of single grains could improve computer hard drives