UPDATE 
  cscart_lock_keys 
SET 
  expiry_at = UNIX_TIMESTAMP(NOW()) + 30, 
  token = '/xRDuKc3ahcuiA4FDX9ZYTtBlX2nGIwwN68dWsi3crs=' 
WHERE 
  key_id = '62b918c2f2ba76a3be7bc53dd6a6a0addd9bc407c6bbfeaefdd930dc0559389f' 
  AND (
    token = '/xRDuKc3ahcuiA4FDX9ZYTtBlX2nGIwwN68dWsi3crs=' 
    OR expiry_at <= UNIX_TIMESTAMP(NOW())
  )

Query time 0.00036