Entropy shaping by shock decay