enhanced perf monitoring, better memory usage