Create transaction on the backend datastore only when neccessary