Summary: This caches the class and method id references between calls. The class lookup is done once per method still but I think that is ok for now as the code becomes somewhat cleaner and more self contained. Reviewed By: lucasr Differential Revision: D3661989 fbshipit-source-id: 68d4557364bb8957400aefb2603c2e46424ccec3