Protect writes to lookup with hash check

This will avoid unnecessary writes if the data has not
changed.
Merge pull request #177 from atlasapi/hashcode-write-lookup

Protect writes to lookup with hash check