I run a set of self-developed applications on a typical shared hosting service offering. I moved from a static configured table list of allowed tables to one based on a lis
The information schema is not optimized, there are no indexes, just tables with metadata, and usually, when you run SELECT from the schema, it opens and reads files.
Have a look at this article - Optimizing INFORMATION_SCHEMA Queries; in some cases it will help you.