The dirty flag behavioral pattern allows you to avoid expensive operations that would just need to be done again anyway.