Just a thought but I would advise against storing anything really important in your hat. In my experience, hats are lost more frequently than any other piece of hiking gear. So while it might work as a yet another backup I wouldn't personally rely on any last-ditch kit stored in my hat.