[CF-14] improve servlet filter perf