Avoiding bread riots is why every single developed nation on Earth heavily subsidizes its farmers, even when they produce at a loss. The ones that didn't got regime changed by hungry, angry people.
Optimized systems tend to become non-resilient - fragile to external shocks. The last thing I want is a fragile system of food production and distribution.
It's better to pay extra into an inefficient system than deal with famines.