They are often stored in silk cocoons that maintain appropriate humidity. Spider larvae undergo metamorphosis while still in the cocoons and leave them when they reach a mature body shape.