Optimize JSON documents by translating keys