optimized commit window