Hi
If this is supposed go around performance issues, you are purely treating the symptoms. The proper place to start is improving the performance. See https://docs.moodle.org/en/Performance_recommendations. There is a dedicated forum for this subject, the Hardware and performance forum https://moodle.org/mod/forum/view.php?id=596.