Optimized loop termination in read_field()