Use debug level instead of info for logging, and some logging performance improvements