Improving efficiency and lifetime through thermal management