Make asset_path be read and generated only once