I have also written about similar problems in this feature request:
Other feature requests that may help with this problem: