PERF: Reduce work when external sources are allowed in `InlineUploads` (PR #14594)

GitHub