UPDATE 
  cscart_lock_keys 
SET 
  expiry_at = UNIX_TIMESTAMP(NOW()) + 30, 
  token = '/z2vNRr14h/odrKFfqr+zD1PiroUWNGkajTn+uvJxy0=' 
WHERE 
  key_id = 'f73a686af50296c96fcc80041f8a8d6b8c2844c6d6811c19564801ab0e2744ea' 
  AND (
    token = '/z2vNRr14h/odrKFfqr+zD1PiroUWNGkajTn+uvJxy0=' 
    OR expiry_at <= UNIX_TIMESTAMP(NOW())
  )

Query time 0.00021