Grid expansion optimization