optimize localize_to_one() for the case of localizing to 0