Fixed incorrect reporting of time taken for reduced query

It was reporting the same time reported for the regular query.
Also added an @autoreleasepool around creating the documents.