Fix possible threading issues by hiding the XSL templates behind a ThreadLocal instance.