Optimize recording