more precompute in index