precompute ambiant cleanup