Make sure remote refs are cached for the duration of validation
within their scope