The fate of ultrahigh energy nuclei in the immediate environment of young fast-rotating pulsars