Improved performance by only reading column type when needed