Avoid Objects.hashCode and guava immutableset to improve performance