safety belts

maybe unnecessary but might help catching further misuses
of the cache_object_t structure (check dd4fc37c8d4618c77ff25e61644c7cf2efc96037)