Overall this can be optimized even more by turning `privacy_mappings` into a dictionary. Check this code http://pastebin.mozilla.org/2976668