1. A method comprising: at a data storage device that includes a controller and a memory, performing: in response to a first write command corresponding to first data and a first context which is identifiable with a first identifier and to a second write command corresponding to second data and a second context identifiable with a second identifier, determining whether the first identifier of the first context matches the second identifier of the second context; if the first identifier of the first context is determined to match the second identifier of the second context, forming a compression group of data including the first data and the second data; and generating compressed data corresponding to the compression group of data.