Shorter expirations are managed by constantly selling the old to the domestic industry and purchasing new, like China does for grain and frozen meat while simultaneously being able to keep the market more stable by selling high and buying low. Switzerland has a lot of stockpiles, even including coffee[0], which the companies also go through FIFO.
0: "The 15 big Swiss coffee retailers, roasters and importers, such as Nestlé, are required by law to store heaps of raw coffee. Together, these mandated coffee reserves amount to about 15,000 tonnes—enough for three months’ consumption. The government finances the storage costs through a levy on imports of coffee. All 15 companies are in favour of maintaining the coffee reserve—as long as they are paid for it." Economist 2019
It needs to be in-service and available before any serious conflict.