precompute the k and j for the tracer method (unroll)