we should be able to perform the comparison only once:

```ruby
@owners_by_key ||= owners.group_by do |owner|
  owner[owner_key_name]
end
@owners_by_key.stringify_keys! if owner_key_type != association_key_type

```