A slow stretch and "shake-out" of the legs before and after may help some; but you HAVE to go easy at first when you get back on. If your gang refuses to accommodate this, get a new gang. Unless you're pro riders in training, nothing is that important to force someone into a potentially injurious action. (Muscles that have 'cooled' are more fragile than at the beginning of the ride; they need to be 'coaxed' back into that level of exertion.)