optimise for-release codes