Do not recalculate the shared part of cache keys. In particular, do not call get_unique_key() multiple times for a single element or source. Fixes #167