1. A device comprising: a cache memory, the cache memory comprising one or more cache memory locations; a connection to a main memory, the main memory being external to the device and comprising one or more main memory locations; and a control unit operably coupled to the cache memory, wherein the control unit is operable to: determine whether a main memory location is already associated with a cache memory location, access data from the main memory location, determine whether the data from the main memory location is required for a future computation, write the data from the main memory location to the cache memory location, if the data is required for a future computation; and initialize the cache memory location, if the data is not required for a future computation.