Use ring buffers for audio and video handling to remove the last large allocations that were happening very frequently