Browsing: optimize safety without efficiency loss