Smart 5G connectivity