Commits an atomic cache after a SQL commit (not before).