Arthur C. Clarke said any sufficiently advanced technology is indistinguishable from magic. Milton Friedman said there’s no such thing as a free lunch. The validity of the former statement does not invalidate the later. From this we can see that even magic has a price. Hence, its application is subject to cost-benefit analysis.
There are many developing technologies that may eventually qualify as magic. Quantum computing, large-scale carbon capture and sequestration (CCS), and the unbounded Internet of Everything (IoE) are a few examples of potential future magic.