Use after-commit hooks to update stats after the transaction is committed (OMS-497)