Add check for malicious request path
Improve activity stream cache handling