Add some caching to not search the recipe multiple times each tick.