impoving localStorage usage