Spices have natural protective structure so that they can preserve their flavor and whole spices can remain the same for a few years and provide the same flavor when you ground them thus if you want to retain flavors of your spices then it is important to properly store them.