ensure we read the whole file at once