refactor plugin FMP for smaller cache file