aggregating small messages to improve performance