Remove unnecessary map.put in getOrElseUpdate