I'd keep a shared pointer to the map msg instead of copying it.