Cloning optimizer

Hi, is there any way to clone an optimizer, or we should just save and load its state?