only read the first 1MB for dialect/encoding scan