Significantly reduced memory usage for dictionaries