Generate metadata items only once
Merge pull request #482 from axsh/optimization-metadatadrive-generation

Generate metadata items only once