Removed looking up for key twice on write.
Merge pull request #78 from shaitan/master

Removed looking up for key twice on write.