Remove useless code
Simplify code
Remove useless logs
Don't process debug if not isDebugEnabled()