cleaning up logic to support bypassing interpreter for constant results