multiprocessing switch
statistics refactored
more caching on input data
adding debug details