some performance optimizations for JDBC