Performance optimizations:
- Added config field to enable/disable audit logging
- Reduce login database calls
- Cache fetched connections