Custom vault blocks using specific key items

I'm trying to create custom vaults with special loot tables, and in order to open them you need a specific custom key. I've already done so multiple times, but using only key items with custom_name and custom_data, now i'd like to use some custom lore too, but when i set up the vault with the config it seems like i need to specify the exact same lore. Is there a way to just check the custom_data for the key item instead of using the specific NBT so i can maybe change it later and still make the key open the vault with different lore but same custom_data tag?

Continue to help post