Have you considered using prepared statements in the plugin? Might make the queries perform faster, which means less lag.
Separate names with a comma.