A real solution could be installing a rom that doesnt consist all the bloatware that samsung installed on stock rom. Because these pre installed apps also run in Background. I personally prefer roms by Albe95 just try them out. There running smoothly and you could change CPU Settings that also avoids overheating. You can also control the overheating mechanism, that means you can lower the value for that mechanism so that your cpu will be throttled down much faster then before. (lowering to much will result in laggs/freezes)