server module performance improvement by removing an event on each request