Seven years ago, a mountain of foodgrain inventory proved led to huge losses