r12167  and r12239 No need for static context cache, speedup && proper reentrance; Don't add too many handlers to logger