Fix bug when trying to autocomplete before cache
Hardcode some string limits to speed things up