New tricks for optimizing thermoelectric materials