UPDATE 
  cscart_lock_keys 
SET 
  expiry_at = UNIX_TIMESTAMP(NOW()) + 30, 
  token = '5OxuByDSrQLJmj2g2eugsLeFA/TDq0z6OEUqTlPFv+E=' 
WHERE 
  key_id = '53dbae72c5fa1ea2e6d84fe5de6e51107e2b4895158e85d646142089edb7f4cf' 
  AND (
    token = '5OxuByDSrQLJmj2g2eugsLeFA/TDq0z6OEUqTlPFv+E=' 
    OR expiry_at <= UNIX_TIMESTAMP(NOW())
  )

Query time 0.00041