Add a bit of logging to states cache writing process