This actually isn't an optimization; Float.valueOf(float f) just calls 'new Float(f)'