Storing spices close to stove shortens life span

I keep mine in 2 narrow upper cabinets next to the stove. I have a “masala dabba” (spice box) with my commonly used Indian spices that lives in one of those cabinets. Makes it easier for me when I cook Indian food to just pull out the one box and have everything in it. Everything else is in OXO POP square containers, stacked in rows in the cabinets, so I take those out as needed.