Avoid to install in memory filtered routes

Hi, there are any way to avoid to install OSPF/BGP filtered routes in memory? What benefits have this?

As the https://help.mikrotik.com/docs/pages/viewpage.action?pageId=74678285 says: “reject matched prefix, the prefix will be stored in the memory as “filtered” and will not be the candidate to be selected as the best path

I don’t see necesary to have thousands of filtered prefixes wasting device memory. If i filter a prefix is because i don’t want to have installed these prefixes.

Thanks!!

For BGP use input.accept-* parameters, to save memory.

Thanks for your answer @mrz

And for OSFP there is any choice?

Thanks!