Store a device's contexts in a dynamic array