UPDATE 
  cscart_lock_keys 
SET 
  expiry_at = UNIX_TIMESTAMP(NOW()) + 30, 
  token = 'uZcrn4eyZitAwvRmxyqUOV2DaYfbXO/TuzJliDQNo0o=' 
WHERE 
  key_id = 'cd72dba1eda65d0e25c840d36e42c973d70aa18c88a84080ffdf4a4eeff5dc68' 
  AND (
    token = 'uZcrn4eyZitAwvRmxyqUOV2DaYfbXO/TuzJliDQNo0o=' 
    OR expiry_at <= UNIX_TIMESTAMP(NOW())
  )

Query time 0.00040