There's an optimal solution here. I think you understand well what it is, but I'll answer the question: Generate the power at home.
If I may add just a moment of colour, this is a very real situation in the province of British Columbia. Canadian natural gas is exported to the United States to generate power, which is then reimported back into British Columbia for use by homes and businesses in that province.
