Optimizing magnetic behavior and supercurrent transmission in ferromagnetic Josephson junctions