Re-enabled the soft fallback when tarsum cannot be computed. This fixes the unit tests.
Removed useless code
Small optimization in local storage