Request log filter and some minor performance optimizations.