Conversion of the precaching code

Version: 1.prealpha.01.06

Signed-off-by: GreatEmerald <pastas4@gmail.com>