The query processing layer in Adaptive Server 15.7 enables multiple client connections to reuse or share dynamic SQL lightweight procedures (LWPs).
statement.prepare(‘insert t1 values (1) insert t2 values (3)’);
Use the streamlined dynamic SQL or enable functionality group configuration parameters to enable this feature.
See "Memory Use and Performance" in the Performance and Tuning Series: Basics and "Setting Configuration Parameters" in the System Administration Guide, Volume 1.