Workaround for fillpeaks' exessive memory usage in parallel mode.