Optimizing float conversion on CPU side.