refractoring code completion local cache