Data from: Life-history strategy determines constraints on immune function