Improved performance when rendering the inventory