[False asumption, sorry!] Unused functions are compiled, how to avoid this?

Ah yes, well the Hardware Serial implementation on the Mega2560 instantiates 4 serial objects even if you don't want them. I suspect they stay there because they are initialized in init().

There may be other reasons as well.