Storing your powdered/ground spices in airtight containers is crucial. This blocks air exposure which retains flavor and aroma for longer.
Although this has not been tested by us, some suggest that you can add chunks of asafoetida to retain the freshness for upto two years.