metadata cache config

Starting to address issue #149