Fix performance hit, due to missing result value optimization.
Squashed another performance bug.