Enhance Url Filter to decrease uneccessary memory usage