Rewrite thread assembling without cache. Optimizations will follow.