Text this: Optimisation of hysteretic losses in high-temperature superconducting wires