Optimize restocking costs