Currently the statement logger calls .debug(...) regardless of the logging level. This allows calls to the underlying logging framework wasting time blocking on locks. Improve the logger to check the level initially.