Easy emory cache for single-threaded environments