Cache in metadata
whitespacea
hah
Merge pull request #1 from andrepl/master

Cache state in metadata