This seems like a rather indirect way of checking whether or not the data to be read is 0K data. Perhaps just have an optional argument to this subroutine that indicates it?