Humidity (moisture) is the enemy of anything that goes bang. If you use rice, put it in a spice sachet bag (used for cooking) and place it in all previously opened containers. Never store any gun powder where you have drastic temperature changes that can cause condensation.