[IM] Dynamically calculate max bytes / packets for the exchange