In a mass storage device including a recording and playback medium, a data recording and playback mechanism for recording one or more units of user data to the recording and playback medium and for playing one or more units of user data back from the recording and playback medium, a physical interface connecting the mass storage to an external computing environment, and an embedded digital controller means in the mass storage device responsive to control values from the physical interface for controlling the recording and playback medium, a storage application program interface (SAPI) implementation engine comprising:
- data recognition means for recognizing a data unit description for the one or more units of user data received from the external computing environment via the physical interface, wherein the data unit description provides an indication of a particular one of a plurality of data types,
- internal data generation means for analyzing the data unit, recognized by the data recognition means, to generate an internal SAPI descriptor for the one or more units of user data based at least in part upon the data unit description, and appending the internal SAPI descriptor to the one or more units of user data,
- internal storage strategy selection means for selecting a storage algorithm from a plurality of predetermined available storage algorithms for storing the one or more units of user data appended with the SAPI descriptor on the recording and playback medium, and
- storage control means within the embedded digital controller for storing the one or more units of user data on the recording and playback medium in accordance with the selected storage algorithm.