Be more conservative about initial buffer sizes

This uses less memory when autocompletion_max_entries has been set too
high.