1. A method comprising: identifying a set of uncompressed pages in a primary memory storage; assigning to each uncompressed page in the set of uncompressed pages a class from a pre-determined set of classes; compressing a plurality of uncompressed pages assigned to a same class into a single logical page; and storing the single logical page in a secondary memory storage.