We could benefit from ES6 unique value store, considering that comparison of replica instances is valid within the lifetime of the function call.