Make the map monoid more performant for mutable maps