Apparently the sidebar was responsible for ~.85 seconds load delay. It seems sqlite doesn't optimize COUNT(*) operations AT ALL. Each COUNT(*) operation results in a complete table scan, apparently.
Even if you have an index.
Arrrgh, FU Sqlite.