Now there’s next to no point to doing that sort of thing for anything other than wheat or rice. Despite what you may have heard.
The problem is that while freezing your rice or wheat for three or four days kills live bugs, it will not reliably kill eggs. So after you freeze it, let it thaw for a day, and repeat. Four or five times. Eventually you’ll kill em all.
Way too much work for me.
My solution? I use plastic or mylar bags with an oxygen absorber. And not the big bags, but smaller bags. Nothing bigger than a gallon.
Which is precisely what we use. Gallon ziplock freezer bags. Four of them fit perfectly into a four gallon square bucket, which is what we use for our food storage.
And honestly, I don’t bother with the oxygen absorbers most of the time.
Will there be bugs in some of the bags? Possibly. But since the ziplock bags are transparent I can see if there are bugs present. And the bags prevent the infestation from spreading too far. By not using larger bags there’s good compartmentalization in your storage supply.
And your chickens will LOVE the infested wheat or rice … so nothing goes to waste.