EHN: make function_handle filter faster