improve cached file security