In versions earlier the 15.5, Replication Server generates the language command, the prepared statement, and the execute statement each time DSI executes dynamic SQL statements, but Replication Server only uses the language command when the dynamic SQL command fails.
In version 15.5, Replication Server optimizes dynamic SQL statements by:
Generating the language command only when the dynamic SQL command fails.
Generating the prepared statement only once when the prepared statement is used for the first time.