Add an option to disable search preview to save some memory
Remove unneeded refcounting
Allow to reuse search
Disable playback related debug output
Use memset to make sure we have everything set to zero