Fixing concurrency issues in preset retrieval.

- Also enhanced security.