Only count time for the set aggregation function when computing allocated_kb

Before it may have included the time to connect to the DB in many cases