added caching for list_inputs, list_outputs, etc.