Rewrite the cache structure as it was flowed, use 'global_dict' as key for the global dict and replace the broken way the global dict was found.

Return suggestion list as a dict, ready for production but no api nor client side code ready.