fixed a typo
improved cache handling
fixed throughput calculation