OSC improvements

Fixed memory build up during high load and improved performance and latency.