daemon: minor optimization