Perhaps phone makers can start making their cases out of aluminum, with enough mass to take the heat. 40W over 20 seconds doesn't sound too daunting.
If you split such an aluminum backplate into two parts you could use them as the power contacts. Then you could have a "coffin" type charger where you put in the phone, then closed a cover to run the charge cycle. Kind of like the cover of a washing machine, to reduce the danger level.