Using prepared statements in Mysql persister for optimization