Initialise the pin status cache