Improve name_filter speed

Removed some old checks that are not needed anymore.