Reduce memory used by precomputation.