move cached autocomplete into production code