speed up method calls by caching method invoke method id