[CF-14] improve servlet filter perf

Well... the remaining code that is in TransformerUtils has very little things to do and I doubt it's not thread safe. :-) Let's see if we can combine the 2 classes.