Fixes issues "Reached MAX size for compiled-sql statement cache" on slow/older devices for a high number of queries.