unless I am missing something, could you explain how you would expect to create the layer state a bit more, ie. automatically at set intervals, upon the selection of a different pspace tab or other triggering event. You could just incorporate the date and time in the name of the layer state.