UPDATE 
  cscart_lock_keys 
SET 
  expiry_at = UNIX_TIMESTAMP(NOW()) + 30, 
  token = 'MEiPjVwAOQb91wJcUFu9ia/9iywsGLWlE+pDk4gpYuA=' 
WHERE 
  key_id = '757fc2254e970a77128e9968e68f79fdbe2578aedd245d1f5d76b56d8941dbfc' 
  AND (
    token = 'MEiPjVwAOQb91wJcUFu9ia/9iywsGLWlE+pDk4gpYuA=' 
    OR expiry_at <= UNIX_TIMESTAMP(NOW())
  )

Query time 0.00015