Fetching the selection is expensive, and this is alreay a hot code path; don't fetch it more than once.