[IMP] improved dirty and inactive record sync