improve sql parser performance