Grinding a spice greatly increases its surface area and so increases the rates of oxidation and evaporation. Thus, the flavor is maximized by storing a spice whole and grinding when needed. The shelf life of a whole dry spice is roughly two years; of a ground spice roughly six months. The "flavor life" of a ground spice can be much shorter.