remove (essentially) unused \inputdata command, which was meant to ignore loading tikz data
setup figure caching via externalizing tikz
reconstitute mytikz as a package, with option external to handle this stuff
be more careful with default external handling