Support sharing comparator with memory store.