Currently crdb_internal.{statement, transaction}_statistics is implemented using generator for the virtual table. This causes us to issue queries that perform full table scan on system.{statement, transaction}_statistics.
Since we are mostly doing scan based on aggregated_ts time ranges, we should add support for virtual index. This can enable us to issue better queries and avoid full table scan.