The steam reforming reaction is the most widespread method used for the hydrogen production. Both, for the industrial and small-scale applications. The reforming reaction has a strong endothermic character, meaning that it requires a constant heat supply to proceed. Due to the process’ character, a non-uniform temperature field is forming inside the reactor. The temperature gradients have an adverse influence on the reactor’s lifetime. The catalytic material is degrading rapidly as a consequence of occurring thermal stresses. The presented study addresses the given problem and proposes an optimization of the catalyst distribution as a solution. The catalytic material’s density and morphology are altered. Secondly, the catalyst is locally substituted with a non-reactive metallic foam to suppress the reaction and allow for reheating of the gaseous reactants. For the needs of the presented research an in-house numerical code simulating the reforming reaction is developed. The kinetics included in the code are derived basing on experimental analyses conducted by our team. The optimization procedure is prepared to limit the occurring temperature gradients, with no significant reduction in the overall process’ effectiveness.