I freeze, then stack so as to keep them out. Using duct tape to seal up cracks where moths and mice can get in. I also check them periodically.
If you put them away without live eggs or moths and don't let them in you're usually safe.
Sunlight and ventilation might also work.