I wonder if NSA has been able to maintain its lead with the rise of quant hedge funds. World-class mathematicians like Jim Simons worked for the NSA, but then he went and popularized the much more lucrative career path of quant finance. That must have set the NSA back a couple decades at least.
While I absolutely adore some of the mathematicians and engineers I worked with in those sorts of firms, I suspect there’s enough deviation between the expertise required for each that it hasn’t had as much of an impact as you might imagine.
I do feel, however, that it has almost certainly had an impact on scientific research in general, and R&D in other fields. QF tends to absorb a lot of talent that could probably be applied more appropriately elsewhere.