[TECHNICAL SUPPORT] LPS-43611 InlineSQLHelperImpl performance improvement

Hi @rotty3000,

This PR comes from@laszlocsontos. CCing @shuyangzhou as it meant to be a performance improvement as well.

Regards,
Vilmos