freeze last_result_sign for optimization