Use SQLite instead of flat files