Statistics for Fast and accurate visibility preprocessing