I'd like to chime in here.
As stated above, whole spices are indeed the best way to have the freshest spices for your use. Grinding them just before use will give out the most volatile oil quickly and with the most strength. Food flavors can be exceptionally consistent with freshly ground spices. We see a lot of very high end places going to self ground spices. There are some places that actually promote this fact to differentiate themselves.
Ground spices in jars no matter how you buy them is a bit more problematic, however. Once the seal is broken, air, light and heat begin immediately to reduce the volatile oil's effectiveness. Simply stated, it evaporates. Most ground spice has a logrithmic decline in flavor. Half the oils will be lost over a period of a few weeks if not stored properly. Once that level of oil is achieved, the flavor does not change much. This is the state of most kitchen spice cabinets.
There are some steps to help the flavor loss problem. First, after opening, do not leave the cap off or a flapper not snapped down. Second, keep the spice as cool, dark and dry as possible. The ultimate way is the freezer, although that may not practical for the variety of ground spices most people have.
Finally, buy smaller amounts and use them as quickly as possible. Large, food service sizes tend to get old before they are used in most homes. We do see a lot of consumer interest in value, but in the case of spices, value can translate into weaker flavors over time.
Bulk jars in stores may or may not have been open for quite a while. Look carefully at the jars and lids to see what they look like. Some do a much better job of proper rotation than others.
As odd as it sounds, some restaurant chains like their spices "pre-staled" to a certain extent. To have as much consistency as possible they choose a lower oil specification so over time, everything will be the same.
As far as retail pricing, you are correct - there has been substantial cost increases mostly due to commodity costs. As an agriculture product, spices are subject to the same forces that cause coffee, peanuts, corn and all the rest of the things we grow to fluctuate in cost. The poor exchange rates of US dollar to other currencies has cause costs to increase. More people in the world and and unstable Middle East (major growing area) has caused costs to rise.

Gig 'em Aggies!