massive perf optimization, mind-blowing :)