Thermodynamically-efficient local computation and the inefficiency of quantum memory compression