Memory of pressure-induced superconductivity in a phase-change alloy