Optimize NBT species retrieval from ItemStacks