Efficiency-improving investment and the ratchet effect