UPDATE 
  cscart_lock_keys 
SET 
  expiry_at = UNIX_TIMESTAMP(NOW()) + 30, 
  token = 'MqVTzBhGSHBylTgiXX8Zvunnp2mFA+ZcwRmNApauLU8=' 
WHERE 
  key_id = '707cdccbb4206771e0acdfdc4b04a826ff1e443a485329c35e57fb0c607205ef' 
  AND (
    token = 'MqVTzBhGSHBylTgiXX8Zvunnp2mFA+ZcwRmNApauLU8=' 
    OR expiry_at <= UNIX_TIMESTAMP(NOW())
  )

Query time 0.00014