Optimised table insertion feature to use prepared statement to avoid high cost.