Fast conditioning algorithm for significant zero curvature detection