Port density optimization