The ShakemAPI request can have a param={"margin": custom_margin} option that can be implemented. This should make the API faster
param={"margin": custom_margin}
\fyi @tara @ds