In order to manage indexes (e.g. find out which indexes are no longer needed, which properties don't need to be indexed any longer), we have an easy way to log all executed queries / query plans.
Each entry only needs to be logged once (logging multiple times is OK, but ensure it's not logged to often). Different log levels can be used (e.g. log level "TRACE" logs more data, "DEBUG" less). For "DEBUG" level, overhead of logging should be minimal, so this can be kept enabled for a long time.