Optimized memory usage of ingest in RTMP connector.