Adds support for subcaches. Resolves #20.