onBeforeRequest perf illustrated