Try to make transactions smaller and less prone to serialization errors.