Optimizing hertzian dynamics