Further simplify the data layers

Completely remove the duplicate codes of the data layers using the prefetching thread.

@geenux, @shelhamer, @jeffdonahue