Embedded devices have built-in software, which results in them having to include storage for software. Embedded devices use flash storage since it should be strong against physical impact. However, flash storage has a limited lifespan, which is equivalent to the lifespan of embedded device. Relatively inexpensive embedded devices can tolerate such limitation, but in the case of high cost devices like smartcars, such ephemeral lifespan is unacceptable. In this paper, we improve the lifespan of smartcars by improving the lifespan of their flash storage, by minimizing the write volume of SQLite.