Use const references rather than making copies when flushing
cached_level_map
Fix Mac build