Add pre-compute trick