Autocomplete optimizations