Add pac chaching and update background