Improved Query logger.
Cache user object