It is also a good expression in everyday use: when something does not go the way you planned, [the phrase 'pain of salvation'] indicates that this is just a slight setback on an otherwise painless journey towards your goal".