Yes, you can do this. I don't really understand your efficiency question, but since methodmaps don't allocate memory it shouldn't matter. There are a few antipatterns in your code though. In general...