Cache extracted locals for much faster completion on large (>=400 LOC) files.