protocol handler registration: use sensible code instead of slow cache-destroying one