If you have a Foodsaver, you could place the wheat in bags of a size you would use in a week, say 5 pounds, add an oxygen absorber for good measure, and then evacuate and seal them. These bags could then be stacked in your 5 gallon bucket, sealed and the grain or beans should be good for an extended period of time. Just pull the bags out one at a time as you need them. If you want to seal and bury your 5 gallon buckets, you might put a bead of 50 year silicone caulking into the groove of the lid before sealing. Then, if you bury the can, you've got 50 years to dig it up. By the way, the bags are resealable after use, if you have electricity that is.