I have seen these sort of 'inversions' as well. As an engineer I've pondered whether or not you could create enough infrastructure to create a non-spoiling product which returned enough capital to move the rest. So in the grain situation you might create a simple distillery which produced grain alcohol, which was sold to cover the cost of moving excess grain to locations where it could be used. Grain alcohol has a number of used and it doesn't spoil, further processing grain into alcohol is a relatively self sufficient process (you can use the alcohol produced to run the distiller and still get net positive output.) It of course presumes free grain.
One of the more curious social effects I've witnessed is that someone will dump grain which is too expensive to move, but they are less willing to simply give it to you for your distillery. They note you're getting an economic benefit from their grain (which is true) but they are unwilling to build their own distillery and capture that value but still won't cede the value to someone who does that original investment.