Keep cache private when things are private. Fixes #2