How to optimize your streaming