Memory fiber