UPDATE 
  cscart_lock_keys 
SET 
  expiry_at = UNIX_TIMESTAMP(NOW()) + 30, 
  token = 'VICEhxKDcnVXaNmlzLgyu8X8O4qXCTSnieci9Mba/T0=' 
WHERE 
  key_id = '0ab7502c606c9ac874865a374b85e9afc00ea00353263a1a6d4c32270a82bb41' 
  AND (
    token = 'VICEhxKDcnVXaNmlzLgyu8X8O4qXCTSnieci9Mba/T0=' 
    OR expiry_at <= UNIX_TIMESTAMP(NOW())
  )

Query time 0.00033