Optimization - deviceKey is now created with get_and_increment