Diagnostic step 1
In a staging environment, set the JDBC URL parameter prepareThreshold=0 (or equivalent for your driver) to force simple query mode and validate latency improvement; this is reversible by changing the JDBC config and restarting app pool.