Hamiltonians generating optimal-speed evolutions