Speed up DeviceGroupRegistry.isGroupPresent()