UPDATE 
  cscart_lock_keys 
SET 
  expiry_at = UNIX_TIMESTAMP(NOW()) + 30, 
  token = 'jbUtEADDkTyridGYcrRWGVu10Yb5tbXHCmON2lZl/hk=' 
WHERE 
  key_id = '273bc803f4d3d728065772aea5c0b43b7b4e7b64ee1a0c8ea2e0f8d06ba7089b' 
  AND (
    token = 'jbUtEADDkTyridGYcrRWGVu10Yb5tbXHCmON2lZl/hk=' 
    OR expiry_at <= UNIX_TIMESTAMP(NOW())
  )

Query time 0.00041