Cache Jmx instances in a threadlocal to ensure minimal lookups and thread safety.