Optimize `isLarge` check in `quote`