A company notices that its database queries are running slow…

A company notices that its database queries are running slowly even though no schema changes were made. Upon investigation, it turns out that the data files are intact, but the indices became corrupted, and the system takes longer to locate records. Which database system component is most responsible for handling and optimizing these operations?