Performance improvement

Base64 decode should only get called once per static file