We have lines permanently (ish) tied around the shrouds for this purpose (and to tie the boat down in the boat park). These are then just coiled up in the forepeak area. Probably a bit messy for a racer?
We’ve never capsized (we are cautious cruisers) so not sure on their effectiveness…