optimize header filter registeration