Optimize inserting long BLOB values for MySQL

I think we can pull this stuff somewhere else and send the messages right inside the prepared statement execute encoder.