Cache duplicate entries to avoid hitting the database.
Hit database less often: removed unnecessary .save() calls.