improve sql parser perforamnce