Infinite channel memory usage optimization by ring buffer