Moved scaling outside cv loop, to test if this affects performance