Some opt
SQL down to one statement
Now a single statement that is cached