Caching method in AUTOLOAD for more performance

This is well-known idiom. By this change, method calls are about 20% faster
than before in my environment.