Use static dict_stats_thd instead of creating/destroying it every time function is called.
Attach a file by drag & drop or click to upload