@theMIROn
DNSMasq + DNSSEC activated < 1 MB Memory
DNSCrypt < 1MB Memory.
Modern ARM Routers >= 256MB Memory.
Even running Asterisk 11 on my router only takes 11MB Memory, for a system total of <50MB.
The only time I've seen memory usage >100MB was me attempted to compile llvm on the router with tomatoware. (hint: can't be done with 256MB. llvm needs more than that to be compiled I come to find out.)
Basically, there's an excessive amount of memory to work with, even when doing much more than the original manufacturer intended. Memory is no issue, especially for programs justifiably useful for a router's primary function.