UPDATE 
  cscart_lock_keys 
SET 
  expiry_at = UNIX_TIMESTAMP(NOW()) + 30, 
  token = 'Qd5nM6P/vzNgI7e5EWUz+J8jbO7b0zDmPLb4e6liIes=' 
WHERE 
  key_id = 'd85b8a85b668e0ad08c5e6dc7462580f5ab04296d1e00ecf6d8a0a2d5426567e' 
  AND (
    token = 'Qd5nM6P/vzNgI7e5EWUz+J8jbO7b0zDmPLb4e6liIes=' 
    OR expiry_at <= UNIX_TIMESTAMP(NOW())
  )

Query time 0.00042