tweak logging performace