Transaction ._dirty flag improvement