Reduce code duplication:
```python
if lower_only:
    cache_key = u'courseIdLower+{}'.format(locator_package_id.lower())
else:
    cache_key = u'courseId+{}'.format(locator_package_id)
return self.cache.get(cache_key)
```