Optimise datapack by first checking for tag instead of individual enchantments

I have a datapack dat changes the loot table for a lot of block. Depending on the enchantmant on the tool the result can be 19 different kinds of blocks. I'm trying to see if I can have it first check for a tag which has all these enchantsment listed. Then either check for every single enchantment or just skip them all and do the Vanilla block drops.

Continue to help post