UPDATE 
  cscart_lock_keys 
SET 
  expiry_at = UNIX_TIMESTAMP(NOW()) + 30, 
  token = 'EkzqnIbFGbCbAJXNxm6ORl/q7J78V6bPoVVc7647WEs=' 
WHERE 
  key_id = '73f0c5277735745d45f6011cd437dcb3fa7126242c78effa153abad0a290d05e' 
  AND (
    token = 'EkzqnIbFGbCbAJXNxm6ORl/q7J78V6bPoVVc7647WEs=' 
    OR expiry_at <= UNIX_TIMESTAMP(NOW())
  )

Query time 0.00044