Control optimization for parametric hamiltonians by pulse reconstruction