Which type of memory is primarily used as cache memory?