Fixing layered assignment bug.

- Layered assignments were lost due to how the cached assignments were replayed
- Replaying each assignment cache after each file is done processing