Method and apparatus for storing memory attributes