alter index writing to be usable from external tools
Merge pull request #2 from emojidex/index_caching

alter index writing to be usable from external tools