Universal processor for iteration over a collection with threads, logging and post processing