Made some functions inline, and removed two bufdup()s (memcpy()s) from
the generate_read_requests Transform layer function