Hidden enchantments

So, I have a few weapons that can only function using custom enchantments, (some can function without em but like it's far easier to do it with CEs). Anyways, obviously I don't want this custom enchantment to be visible, so when I made it, it was nameless and had only a maximum level of I, so it isn't visible in the enchantments section even though it still takes space. I can remove the glint with the glint override component. But I also don't want this enchantment to affect the ability to enchant in an enchanting table, so I'd have to remove it every time the player attempts to open an enchanting table. It isn't that big of a deal but I have two questions: A) Can you think of any other way to achieve this other than removing and applying the enchantment & the enchantment override glint component? B) If not, is my method the best option? Which is to circle through all your inventory slots and attempt to run an item modifier to do those things? (Aka like 36 commands for each slot in one go everytime you open an enchanting table)

Continue to help post