We should probably reuse the same cursor used by other metrics instead of opening a new one.