Optimized dict loading cpp test (400% faster)