Need to change free-map to write things to cache and write only occassionally