Handler invocation cache

this needs a code review. any takers?

issue #1017
note there is a TODO to remove the old version after you validate the performance tests

in my basic perf tests for 100000 invokes ...
before: 124ms
after: 33ms

However the perf improvements will be greater with more handlers.