Don't write attributes unless persisted