Test precomputation