Howzit Nick. Boilies can last for many months of not used. Preferably in a Tupperware like you do.
Some folks freeze their boilies, not sure if this helps at all.
I believe that they are still good to go even if they are a bit hard, do you use them on hair rigs? As long as you can make the hole for the hair rig they should be fine.