The ultimate solution would be to arrange for an effective heat transfer medium between the caps and the outer can. Although immersion in a liquid would work, the prospects of having to remake the hermetic can seal, and chemical compatibility issues with the seals would make any sane person run screaming for the hills.
Probably the best option would be an aluminium block heat spreader machined to be a snug sliding fit in the old can, and bored for each replacement cap, + one vent hole to ease insertion.. Strip the jackets from the replacement caps for better heat transfer, and use heatsink compound. Due to the far greater surface area of the original can, that should run cooler than the replacement caps would, grouped in free air. If one was mass-producing re-stuffed caps, then setting up to form heavy Aluminium strip in a C shape round each cap with the ends bent back to fit snugly against the can wall would be a possibility instead of a machined heat spreader, but it would be a P.I.T.A. developing the process and tooling.