Compose key with cache id

Fixes #1