Dynamic SQL statements are executed only once or twice in a session for an application.
Set the connection property DYNAMIC_PREPARE to false.
PreparedStatement ps_uncomp = Connection.prepareStatement(sql_string);
PreparedStatement ps_precomp = (SybConnection)conn.prepareStatement(sql_string, true);