load whitelist from json resource file, micro optimizations