UPDATE 
  cscart_lock_keys 
SET 
  expiry_at = UNIX_TIMESTAMP(NOW()) + 30, 
  token = 's3BOzfoOj/ggejModbrsjnIu5Ib9B/wqGBlEzaOp/h0=' 
WHERE 
  key_id = 'fcd785c8f16a221b9ee3fc4c2fba884a3ee625b0d1aa44d3d9e9d79fcf4853f8' 
  AND (
    token = 's3BOzfoOj/ggejModbrsjnIu5Ib9B/wqGBlEzaOp/h0=' 
    OR expiry_at <= UNIX_TIMESTAMP(NOW())
  )

Query time 0.00036