UPDATE 
  cscart_lock_keys 
SET 
  expiry_at = UNIX_TIMESTAMP(NOW()) + 30, 
  token = 'c7VQwLbFze8yfHGOONE9qamVtbnzDsZrxFOtLe5zi/U=' 
WHERE 
  key_id = '1cb2b737ffd9d0b3a407b7c07ad901d630f9ab2c4996318cac696e9f3e825a14' 
  AND (
    token = 'c7VQwLbFze8yfHGOONE9qamVtbnzDsZrxFOtLe5zi/U=' 
    OR expiry_at <= UNIX_TIMESTAMP(NOW())
  )

Query time 0.00028