Small performance improvement in Transaction