Compact memory