Caching the result of 'isInternalImplementation'

Currently, reflective getPackage() call happens on every subscribe() invocation.  This PR sets up a Concurrent HashMap to cache the result of this call per-class.