Can you provide edge cases so that we may better undestand what you need?
Concrete examples would greatly help us undestand what you want.
Ex
Want to identify all unique "amber amulet" and sell them
Want to stash all unique "ruby ring"
Something like that?
Or something like this?
Want to identify and sell all "The Anvil amber amulet" but stash all "Blood of corruption amber amulet"