T1 encoder: speed-up by aggressive inlining and more cache friendly data organization