Code completion: more optimal fetching of top level functions