Soil compaction caused by heavy agricultural machinery poses a significant challenge to sustainable farming by degrading soil health, reducing crop productivity, and disrupting environmental dynamics. Field traffic optimization can help abate compaction, yet conventional algorithms have mostly focused on minimizing route length while overlooking soil compaction dynamics in their cost function. This study introduces Soil2Cover, an approach that combines controlled traffic farming principles with the SoilFlex model to minimize soil compaction by optimizing machinery paths. Soil2Cover prioritizes the frequency of machinery passes over specific areas, while integrating soil mechanical properties to quantify compaction impacts. Results from tests on 1000 fields demonstrate that our approach achieves a reduction in route length of up to 4-6% while reducing the soil compaction on headlands by up to 30% in both single-crop and intercropping scenarios. The optimized routes improve crop yields whilst reducing operational costs, lowering fuel consumption and decreasing the overall environmental footprint of agricultural production. The implementation code will be released with the third version of Fields2Cover, an open-source library for the coverage path planning problem in agricultural settings.