Fixed unbounded memory allocation in local storage