Add option for ram buffer size.
Fixes in Prefetch detach.