adding caching to the fancy visualization callback
adding profiler, trying to get speedups with raw SQL and failing