Minor optimization for big inventories