Always save metadata locally.
Fixed KeyError exception raised my the threading module.