You might want to consider replacing these four UnboundedRel operations with a single GetRelNeighborChunkAdjustCoords() and then normal bounded operations on that chunk.