UPDATE 
  cscart_lock_keys 
SET 
  expiry_at = UNIX_TIMESTAMP(NOW()) + 30, 
  token = 'b3bkg4B1TCIefjpjzKWvMPz6oUC5mKcreTx1QuP//xc=' 
WHERE 
  key_id = '4c5e79c7d4c2bddc9c69d4e5a022a3e870810c8c1726de245938b6205d4ad282' 
  AND (
    token = 'b3bkg4B1TCIefjpjzKWvMPz6oUC5mKcreTx1QuP//xc=' 
    OR expiry_at <= UNIX_TIMESTAMP(NOW())
  )

Query time 0.00023