Optimizing laser-driven proton acceleration from overdense targets