Smart cards are just a micro and eeprom. A gold card is a 16f84A and an eeprom. To use the eeprom memory simply write a small routine to program into the 16f84A that allows commands to store and retrive data. Then on your pic that is using the smartcard for storage, program these commands accordingly.