Could we not ensure that equality is dealt with principally on Cookie and use a Set here. Feels heavy to convert to a map. Also feels like a Set[Cookie] should be passed in...