1. A data storage device comprising: a memory; and a controller comprising a memory interface and a data shaping engine, the controller configured to: apply a mapping via the data shaping engine to input data to generate transformed data, the input data including one or more m-tuples of bits with a first number of bit values that represent a particular logical state in the memory, the particular logical state being a high-wear voltage of the memory, the transformed data including one or more n-tuples of bits with a second number of bit values that represent the particular logical state, wherein n is greater than m, wherein a relationship of a gray coding of m-tuples of bits to a gray coding of n-tuples of bits is indicated by the mapping, wherein the transformed data reduces wear at the memory based on the second number of bit values being less than the first number of bit values, and write, with the memory interface, the transformed data to the memory to store the one or more n-tuples of bits with the second number of bit values by modifying states of storage elements of the memory so that the transformed data is readable via detection by read circuitry of the modified states.