instead of checking if it is binary format, check if it's not text format to be a bit more paranoid
make the map with the capacity hint of the number of keys