If you wanted to be "safer" here you could use memcache cas for operating on this.  Same ideas would apply to that as do for handling transaction errors with the datastore.