Allow to enable/disable metadata cache through config