Performance optimalizations.