Make optimization to compute_coverage to improve performance.