A method of storing data in a memory is provided, including testing a
plurality of memory cells of a plurality of memory cell sectors. Each
memory cell sector includes a plurality of memory cells. Each memory cell
sector is classified into at least one quality class of a plurality of
quality classes depending on the results of the testing of the memory
cells of the respective memory cell sector. Data is stored in the memory
cells of the classified memory cell sectors depending on the quality
class of the respective memory cell sector.