add caching for hook-calls so we do not need to iterate through all module all the time, thx Eleras

Signed-off-by: Michael Kaufmann (d00p) <d00p@froxlor.org>