Put a ThreadLocal around the object to be thread safe Reviewed-by: tschatzl, iignatyev
Reviewed-by: vlivanov, erikj, mseledtsov, gthornbr