Introduce Recid Preallocate thread. Fix issue #46