is the mutable map needed for performance?