Modified so that it will not attempt to write to the databank cache unless it's writable