a plurality of cells of a flash memory are tested to determine if they need to be refreshed . the cells are read and a plurality of different sensing ratios are used to determine if any of the cells need to be refreshed . any cells that are determined to need refreshing are refreshed . the cells are read using only a single constant gate voltage .