Increased pool size (10 => 32) and message queue threshold (100 => 500).
Optimization: avoid temporary tables and filesort.
Changed the order of indexes in index hints.
Added functions for encoding/decoding JIDs stored using ODBC.
Minified JIDs.