UPDATE 
  cscart_lock_keys 
SET 
  expiry_at = UNIX_TIMESTAMP(NOW()) + 30, 
  token = 'jushn7/aIgInxdAw4cvrqciMQrYxyQzom5flF5K/G5A=' 
WHERE 
  key_id = '1abd8ccf714078fb49b27cb5fdfb651d11e33bf743ef70546a04e9e41c836e70' 
  AND (
    token = 'jushn7/aIgInxdAw4cvrqciMQrYxyQzom5flF5K/G5A=' 
    OR expiry_at <= UNIX_TIMESTAMP(NOW())
  )

Query time 0.00034