Slight optimizations sax scanner