Whole spices keep their character longer than powders, but they are not immune to air, light, heat, or damp. The oils that give cumin, coriander, pepper, and similar seeds their smell are volatile. Once those oils fade, extra heat in the pan will not bring them back. A simple storage routine is enough for most home kitchens and small working stocks; the aim is to slow that fading, not to invent a special process.
Start with the container. A jar or tin that closes firmly, and that light...