Chapter 3, Modularity, Objects, and State
Exercise 3.42
I think it is indeed an optimised solution and it will work exactly as the orignial solution.
There is no need to serialize on every invocation - serialize once and re-use the serialized procedure on every call to withdraw/deposit.