Well that energy provider is either state owned and state will pay the cost or it will simply go bankrupt. Somebody will pay for it. Unless you hack you adversaries nuclear missiles or something similar allocating a significant proportion of your country's economy to breaking individual encryption keys won't work out very well. Also there is the massive cost of the computers that would need to do this.