Assuming you have no pressing needs for your invested capital (e.g. most retail investors), the market cannot actually stay irrational longer than you can remain solvent.
Well, the companies that don't go bust.
Why?
I am not an economist though, this is just my layman’s view.
You don't actually need to improve efficiency/productivity if the government has tools like the discount rate, open market operations, the ability to alter margin requirements on derivatives, fed funds rate, as well as programs and policies like MMIF, TAF, CPPF, ABCP, TALF, ZIRP, to manipulate the money supply and the velocity/flow rates of money.
What you actually have to figure out is: is there any unexpected future efficiency gains that the market doesn't expect. You have to know something that the market does not.
Isn't this ignoring opportunity cost, uncertainty, etc.? If the expectation of future gains is priced in, wouldn't treasury bonds sell for face value + remaining interest on the secondary market?