optimize performance when having lots of backends

Signed-off-by: Sven Nierlein <sven@nierlein.de>
optimize sum subs