Fetch rows in batches.
Optimize some integer fetches.
Synchronize JDBC methods that could run in different threads.