I created my own fix to avoid the problem from occurring... It does have a side effect of messing up the displayed amount of money, but it just prevents the money from being subtracted so it won't bug out and cause the massive slowdown. The bug also applies to any other action that causes money to decrease or increase, but it's the most noticeable with stats due to the amount of currency it costs each time and the amount of times you do it in a row.