Stupid attemt to try to make kd edges quicker
Only 10% or so.