Nuts can become damp even when they still have a long shelf life, and they can also develop an old smell. Eating them regularly seems to be the best way.