Optimizing vehicles for enhanced road safety