Activating method cache and static method cache